package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc AllExecutionCycleDto
 * @使用场景
 */
@Data
public class AllExecutionCycleDto extends BaseDto implements Serializable {

  /**
   * 周期ID
   */
  @NotNull(message = "周期ID不能为空")
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期类型标识
   */
  @NotNull(message = "周期类型标识不能为空")
  @ApiModelProperty("周期类型标识")
  private String cycleTypeCode;
/**
     * 被评对象目标周期ID 
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String	 evaObjTargetCycleId;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      AllExecutionCycleDto that = (AllExecutionCycleDto) o;
      return  cycleId == that.cycleId&&cycleTypeCode == that.cycleTypeCode&&evaObjTargetCycleId == that.evaObjTargetCycleId;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), cycleId,cycleTypeCode,evaObjTargetCycleId);
    }

}
